why to use nested class in selenium